package com.example.demo.mapper;

import com.example.demo.dto.CustomerServiceConnection;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CustomerMapper {
    @Select("SELECT * from cs where status = 1")
    List<CustomerServiceConnection> findAll();

    @Select("SELECT * from cs where agentId = #{agentId}")
    CustomerServiceConnection findById(String agentId);
}
